package myapp.advancedapp;

import android.os.Environment;
import android.widget.TextView;
import android.widget.Toast;

import java.io.File;

import myapp.baselibrary.dialog.AlertDialog;
import myapp.baselibrary.ioc.OnClick;
import myapp.baselibrary.ioc.ViewById;
import myapp.framelibrary.base.BaseSkinActivity;
import myapp.framelibrary.skin.SkinManager;
import myapp.framelibrary.skin.SkinResource;


public class MainActivity extends BaseSkinActivity {

    @ViewById(R.id.tv_a)
    private TextView textView;

    @Override
    protected void initEvent() {
        String skinPath = Environment.getExternalStorageDirectory().getAbsolutePath()+File.separator+"red.skin";
        int result = SkinManager.getInstance().loadSkin(skinPath);
    }

    @Override
    protected void initData() {
        _fixDexBug();


    }

    private void _fixDexBug() {
        File fixFile = new File(Environment.getExternalStorageDirectory(), "fix.dex");
    }

    @Override
    protected void initView() {

    }

    @Override
    protected int getContentView() {
        return R.layout.activity_main;
    }

    @OnClick(R.id.tv_a)
    private void onClick(){
        Toast.makeText(this,"BUG",Toast.LENGTH_SHORT).show();

    }

    @Override
    public void changeSkin(SkinResource skinResource) {

    }
}
